package spring.cloud.tasks.client.item_task_processor.api;


import java.util.Comparator;
import java.util.List;


public abstract class TaskProcessor<TaskData> {
    public abstract String getTaskId();

    public abstract List<TaskData> getTaskDataList(List<String> taskItemList, int taskItemNum, String taskParameter, int eachFetchDataNum
    ) throws Exception;

    public abstract Comparator<TaskData> getComparator();

    public abstract boolean execute(TaskData taskData) throws Exception;

    public abstract boolean execute(TaskData[] taskDatas) throws Exception;
}
